<!DOCTYPE html>
<body>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=../resources/feature-policy-permissions-test.js></script>
<script type="module">
import {MockMIDIService} from '/wpt_internal/webmidi/resources/mock-midiservice.js';

const mock = new MockMIDIService();

run_permission_default_header_policy_tests(
  location.protocol + '//localhost:' + location.port,
  'midi',
  'SecurityError',
  function() {
    return navigator.requestMIDIAccess();
  }
);

</script>
</body>
